<template>
  <div class="home-container">
    <!-- 顶部导航栏组件 -->
    <van-nav-bar class="page-nav-bar">
      <van-button class="search-btn" 
      slot="title" type="info" size="small" 
      round icon="search">搜索</van-button>
    </van-nav-bar>
    <!-- 频道列表 -->
   <van-tabs class="channel-tabs" v-model="active" swipeable animated>
     <van-tab title="标签 1">内容 1</van-tab>
     <van-tab title="标签 2">内容 2</van-tab>
     <van-tab title="标签 3">内容 3</van-tab>
     <van-tab title="标签 4">内容 4</van-tab>
     <van-tab title="标签 5">内容 5</van-tab>
     <van-tab title="标签 6">内容 6</van-tab>
      <!-- 汉堡按钮 -->
      <div slot="nav-right" class="placeholder"></div>
      <div slot="nav-right" class="hamburger-btn">
       <i class="toutiao toutiao-gengduo"></i>
     </div>
   </van-tabs>
  </div>
</template>

<script>
export default {
     name: 'HomeIndex',
     data() {
       return {
         active: 0
       }
     }
   }
</script>

<style scoped lang="less">
.home-container {
  /deep/ .van-nav-bar__title {
    max-width: unset;
  }
  .search-btn {
    width: 555px;
    height: 64px;
    background-color: #5babfb;
    border: none;
    font-size: 28px;
    .van-icon {
      font-size: 32px;
    }
  }
  /deep/ .channel-tabs {
  .van-tabs__wrap {
    height: 82px;
  }

  .van-tab {
    min-width: 200px;
    border-right: 1px solid #edeff3;
    font-size: 30px;
    color: #777777;
  }

  .van-tab--active {
    color: #333333;
  }

  .van-tabs__nav {
    padding-bottom: 0;
  }

  .van-tabs__line {
    bottom: 8px;
    width: 31px !important;
    height: 6px;
    background-color: #3296fa;
  }
  .placeholder {
     flex-shrink: 0;
     width: 66px;
     height: 82px;
    }
  .hamburger-btn {
     position: fixed;
     right: 0;
     display: flex;
     justify-content: center;
     align-items: center;
     width: 66px;
     height: 82px;
     background-color: #fff;
     opacity: 0.902;
   
     i.toutiao {
       font-size: 33px;
     }
     &:before {
       content: '';
       position: absolute;
       left: 0;
       width: 1px;
       height: 100%;
       background-image: url(~@/assets/gradient-gray-line.png);
       background-size: contain;
     }
    }
  }
}
</style>